import Vue from 'vue'

import moment from 'moment'

import 'moment/locale/zh-cn'

Vue.filter('relative', value => {
  return moment(value).fromNow()
})
